import VueRouter from 'vue-router'
import Vue from 'vue'
Vue.use(VueRouter)
const routes= [
  {
    path: '',
    title: '公司简介',
    name:'main',
    component:()=>import('../views/main.vue')
  },
  {
    path: '/campusRecruitment/:type',
    name: 'campusRecruitment',
    title: '校园招聘',
    component:()=>import('../views/campusRecruitment')
  },
  {
    path: '/positionDetail/:id',
    name: 'positionDetail',
    title: '职位详细',
    component:()=>import('../views/positionDetail')
  }
]

const router= new VueRouter({
  routes,
  mode: 'history',
  base:process.env.BASE_URL
})
export default router